import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import seven.config.SpringConfiguration;
import seven.servlet.UserServlet;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = SpringConfiguration.class)
public class main2 {

    @Autowired
    UserServlet userServlet;

    @Test
    public void run(){
        System.out.println(userServlet.userService2);

    }
}
